<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

<script type="text/javascript" src="js/CheckAddXUser.js"></script>


</head>
<body>


   <div class="row">
   
      <div class="col-md-12">
      
<nav class="navbar navbar-default">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
       <a class="navbar-brand" href="#" style="color:blue;font-size:20px;font-weight:bold">东方罗尔后台管理</a>
    </div>

    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
         <li><a href="#" style="color:red;font-size:12px">欢迎张三登陆</a></li>
    
      </ul>
   
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#">退出登陆</a></li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav> 
      
      
      </div>
   
   
   
   </div>



   <div class="row">
   
    
      <div class="col-md-2">
      
           
         <%@include file="Menu.jsp" %>
           
           
      
      
      
      </div>
      
      
      
      <div class="col-md-10">
      
      
      
 <div class="panel panel-default">
  <div class="panel-heading">录入员工</div>
  <div class="panel-body">
   
   
        <form class="form-horizontal" id="f1" action="AddUserServlet" method="POST">
        
        <c:if test="${requestScope.flag!=null}">
        
              
              <c:choose>
              
                 <c:when test="${requestScope.flag}">
                 
                 	<div class="form-group" style="text-align: center;color:green">
                 	
                 	     添加成功
                 	
                 	</div>
                 
                 
                 </c:when>
                 
                 
                 <c:otherwise>
                 
                    
                 	<div class="form-group" style="text-align: center;color:red">
                 	
                 	     添加失败
                 	
                 	</div>
                 
                 
                 </c:otherwise>
              
              
              
              </c:choose>
              
              
        
        
        </c:if>        
        
        
        
  <div class="form-group">
    <label for="forename" class="col-sm-2 control-label">姓名</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="forename" name="ename"  placeholder="请输入员工姓名" aria-describedby="helpBlock2">
    </div>
  </div>
  
  
  <div class="form-group">
    <label for="forage" class="col-sm-2 control-label">年龄</label>
    <div class="col-sm-10">
      <input type="number" class="form-control" id="forage" name="age" placeholder="请输入员工年龄">
    </div>
  </div>
  
  <div class="form-group">
  

       <label for="forsex" class="col-sm-2 control-label">性别</label>
    <div class="col-sm-10">
     
     
<label class="radio-inline">
  <input type="radio" name="sex" id="inlineRadio1" value="0" checked="checked">男
</label>
<label class="radio-inline">
  <input type="radio" name="sex" id="inlineRadio2" value="1"> 女
</label>
     
     
    </div>






  
  
  
  </div>
  
  <div class="form-group">
  
       <label for="fordid" class="col-sm-2 control-label">所在部门</label>
    <div class="col-sm-10">
     
 <select class="form-control" id="fordid" name="did">
 
        <option value="-1">--请选择--</option>
 
 
 
    <c:forEach items="${requestScope.list}" var="item">
    
       <option value="${item.id}">${item.dname}</option>
    
    
    
    </c:forEach>
 
 
 
 
</select>
     
     
     
    </div>
  </div>
  
  <div class="form-group">
    <label for="forsalary" class="col-sm-2 control-label">工资</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="forsalary" name="salary" placeholder="请输入员工工资">
    </div>
  </div>
  
  
   <div class="form-group">
    <label for="foraddress" class="col-sm-2 control-label">地址</label>
    <div class="col-sm-10">
      <input type="text" class="form-control" id="foraddress" name="address" placeholder="请输入员工地址">
    </div>
  </div>
  
    <div class="form-group" style="text-align: center;">
    
       <input type="button" id="buttonid" class="btn btn-primary btn-lg" value="--录入--">
    
     </div>
  
  
  
       
         </form>
  
  </div>
        
        
        
        
   
   
   
   
   
   
   
  </div>
</div>
      
      
      
      
      
      </div>
   
   
   



 
</body>
</html>